// 用户管理增删改查
import { baseRequest } from '@/utils/request'
const request = (url, ...arg) => {
    return baseRequest(url, ...arg)
}
export default {
    // 增
    addUser(data) {
        return request('/AddUser', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 删
    deleteUser(data) {
        return request('/DeleteUser', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 改
    modifyUser(data) {
        return request('/ModifyUser', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 查
    getUsers(data) {
        return request('/GetUsers', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
}